GetStrongStorageUnitRef
TheGetStrongStorageUnitRef
method creates a strong persistent reference to the specified storage unit.
void GetStrongStorageUnitRef ( in ODStorageUnitID embeddedSUID, out ODStorageUnitRef strongRef);
embeddedSUID
- The storage-unit ID of the storage unit whose persistent reference is desired.
strongRef
- A persistent reference to the storage unit specified by the
embeddedSUID
parameter.DISCUSSION
Before you call this method, you should focus this storage unit on the value where you want to store the strong persistent reference. After this method executes successfully, call theSetValue
method to store the resulting persistent reference, returned in thestrongRef
output parameter, into the currently focused value.
- IMPORTANT
- The scope of a persistent reference is limited to the value in which it was created. If you store the persistent reference in a different value, it will almost certainly not refer to the correct storage unit.
![]()
EXCEPTIONS
kODErrIllegalNullStorageUnitInput
- The
embeddedSUID
parameter is null.kODErrUnfocusedStorageUnit
- This storage unit is not focused on a value.
kODErrZeroRefCount
- This storage unit has a reference count of 0.
SEE ALSO
TheODStorageUnitID
type (page 903).
TheODStorageUnitRef
type (page 903).
TheODStorageUnit::GetWeakStorageUnitRef
method (page 699).
TheODStorageUnit::IsStrongStorageUnitRef
method (page 703).
TheODStorageUnit::SetValue
method (page 714).
"Creating Persistent References" on page 281 in OpenDoc Programmer's Guide.
"Persistent References and Cloning" on page 282 in OpenDoc Programmer's Guide.
"Creating Additional Storage Units" on page 301 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help